Shivam Gupta's submission of Maximum Remaining | CodeChef