Bhaskar Reddy's submission of Mahasena | CodeChef