Solution to Problem 3 - Mars Rover