Kaushal's submission of Mahasena | CodeChef