Sagar Pathare's submission of Mahasena | CodeChef