Mphasis interview question

Write a code for tic tac toe game.