Shubhodeep Chanda's submission of Mahasena | CodeChef