Roblox Interview Question

Maximize potential energy for puzzle paths