Greedy implementation of Code Change Kata