Canva interview question

Implement Tic tac toe logic