LeetCode
Robot Bounded In Circle
Click
here
for an explanation.