Epic interview question

Write a java code for tictactoe game