Tushar Tyagi's submission of Mahasena | CodeChef