Harsh Depal's submission of Mahasena | CodeChef