Pranjal Rai's submission of Mahasena | CodeChef