palak's submission of Mahasena | CodeChef