Chaitya Reddy's submission of Mahasena | CodeChef