Amish Kumar Singh's submission of Mahasena | CodeChef