Saurabh Dalakoti's submission of Mahasena | CodeChef