Tripadvisor interview question

Write a tic tac toe game