Multiverse wants to enhance their Mars Rover system with the following capabilities:
The Mars surface has obstacles that rovers must navigate around. Extend the system to detect collisions with obstacles: when a rover tries to move into an obstacle, it should stop at its current position (not move forward) but continue processing remaining commands.
Note the updated input format: obstacles may be specified in the grid object.
New Input Format: