Aakash Pahwa's submission of Mahasena | CodeChef