Mayank Pratap Singh's submission of Mahasena | CodeChef