Chewy interview question

Tic Tac Toe coding question