Anheuser-Busch InBev interview question

Find matching words in string, coin denomination problem