prachi's submission of Mahasena | CodeChef