Apple Interview Question

Write a program for tic tac toe game