Amazon Interview Question

The second problem was a lot like Hackerrank's 'Bot saves princess - 2' problem except with obstacles in the map.