Abhishek Pandey's submission of Mahasena | CodeChef