Pregunta de entrevista de Beeline

How to solve a Tic Tac Toe game in code