Rishi Chawla's submission of Mahasena | CodeChef