Robot In A Grid Leetcode Javascript 30