Kata > MarsRover

The rover starts with an initial position and heading.

Position is defined by x and y coordinates.

Heading is North, East, South, or West.

The rover can execute the following instructions:

A sequence of instructions is received from Earth e.g. forward, right, reverse, left.

Determine the final position and heading of the rover after executing these instructions.