Gunturu Sanjana's submission of Mahasena | CodeChef