leetcode
657. Robot Return to Origin
Solution code
Time complexity: O(n)
Space complexity: O(1)