Roblox interview question

code a bouncing diagonal in a graph