Ankit Rana's submission of Mahasena | CodeChef