Domanda di colloquio di Anheuser-Busch InBev

Find matching words in string, coin denomination problem