Desafio: moedas.

Clique aqui e veja a resposta