Implement Trie (Prefix Tree)
Design a structure that inserts words and can test whether a complete word exists or whether any stored word begins with a given prefix.
Design a structure that inserts words and can test whether a complete word exists or whether any stored word begins with a given prefix.