Shreyash Gupta's submission of Maximum Remaining | CodeChef