Cut the beef into bite-sized pieces.
Slice the onion thinly.
Heat oil in a pan and stir-fry the beef.
Season the beef with soy sauce, sugar, and pepper.
Add the onion and stir-fry together.
Put rice in a bowl.
Place the stir-fried beef and onion on top of the rice.
Drizzle mayonnaise over the top.