Pregunta de entrevista de Amazon

question implementing tic tac toe problem