Roblox interview question

Q: break from a prision, hackerrank