pranay varma's submission of Mahasena | CodeChef