Abhipso Ghosh's submission of Mahasena | CodeChef