Ashwin Chourasia's submission of Mahasena | CodeChef