Roblox interview question

Using trees to solve questions