Dinesh Goyal's submission of Second Largest | CodeChef