Divesh Uttamchandani's submission of Mahasena | CodeChef