FIS Interview Question

Tic-tak-toe problem