Sourav Mishra's submission of Mahasena | CodeChef