Harsh Khajuria's submission of Mahasena | CodeChef