Komal mishra's submission of Mahasena | CodeChef