CANVAS Technology interview question

TicTacToe