Model answer
Use a trie: each edge represents a character and the node reached by a prefix directly identifies all completions below it. Prefix lookup is O(length of prefix), independent of the number of stored words except for reporting results.
Use the key terms, then explain the reasoning.