Amazon Online Assessment 2021 (OA) - Robot Bounded in Circle

Practice on leetcode here: https://leetcode.com/problems/robot-bounded-in-circle/

Solution and Explanations