Mehul Dokania's submission of Mahasena | CodeChef