Design a Tic-Tac-Toe Engine | Decagon Interview Question