Calculates the least number of coins it would take to add up to a given amount of change.