HashedIn by Deloitte Interview Question

Write a program for tic tac toe