Pergunta de entrevista da empresa SRC

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