Criteo Interview Question

Implement tic tac toe game using javascript