Thoughtworks interview question

Create production quality code given coordinate inputs/directions and outputs the final location.