Rahil's submission of Mahasena | CodeChef