X interview question

Tic Tac Toe System Design Implement