Dinesh Goyal's submission of Greedy puppy | CodeChef