Dinesh Goyal's submission of Maximum Remaining | CodeChef