Cut the chicken into bite-sized pieces.
Slice the onion and green onion.
Add oil to a pan and stir-fry the chicken.
When the chicken is half-cooked, add the onion and green onion and stir-fry.
Season with soy sauce, sugar, minced garlic, and pepper.
When all ingredients are cooked, serve over rice to finish.