UVA 674 - Coin Change

The full problem description can be found here.
Java Code