Kashish Gilhotra's submission of Mahasena | CodeChef