Sitesh Roy's submission of Mahasena | CodeChef