Implement the informal algorithm introduced in [Section "Greedy algorithms"](https://comp-think.github.io/2018-2019/lecture-notes/14%20-%20Greedy%20algorithms.pdf) for returning the minimum amount of coins for a change.