addWord stores words; getWords(pattern) returns the three lexicographically smallest words starting with the pattern — where '.' matches any letter.
addWord stores words; getWords(pattern) returns the three lexicographically smallest words starting with the pattern — where '.' matches any letter.
Opens with the full question.