Capgemini interview question

How would you program a tic tac toe game?