Microsoft Interview Question

Tic Tac Toe question