Meta interview question

Code up the solution to solving a simple board game