Parth's submission of Mahasena | CodeChef