You are given a collection of words, say as in a dictionary. You can represent it in the following compressed form: the first word will be followed by a sequence of a pair of number and a word. The number in the pair is the position till which the previous words'' characters are included in the new word and the tail is the remaining trailing word which is the different than the previous word.