DIY: Expressive words

Solve the interview question "Expressive words" in this lesson.

Problem statement

Given a string, S, and a list of words ...