Amount interview question

How would you solve tic-tac-toe