Kunal Kalsi's submission of Mahasena | CodeChef