Code kata described here: http://www.techinterviewpuzzles.com/2010/09/mars-rovers-thoughtworks-puzzles.html