Devesh Agarwal's submission of Tic-Tac Theory | CodeChef