Mphasis Interview Question

Write a code for tic tac toe game.