Mohammad Asad Ansari's submission of Mahasena | CodeChef