Shivang Patel's submission of Mahasena | CodeChef