Solution to 'Coin Change' problem.