SIMON Markets interview question

Implement the tic tac toe game