Project Euler 31 - Coin sums

Official link: https://projecteuler.net/problem=31