Domanda di colloquio di Amount

How would you solve tic-tac-toe