Pregunta de entrevista de SRC

Write code to determine what state a Tic Tac Toe game is in.