Apple interview question

Write a program for tic tac toe game