Criteo interview question

Comment coder un tic tac toe