Expensya interview question

Tic Tac Toe game algorithm