A practice problem building a wordchainer