Priti Gupta's submission of Mahasena | CodeChef