cmd2do's submission of Greedy puppy | CodeChef