GEICO Interview Question

Similar to Robot Room Cleaner on leetcode