Implement Trie (Prefix Tree)

Design a trie that supports inserting words and searching words or prefixes.

Examples
Input: [["Trie","insert","search","search","startsWith","insert","search"],[[],["apple"],["apple"],["app"],["app"],["app"],["app"]]]
Output: [null,null,true,false,true,null,true]
Hints
Related Problems

Implement Trie (Prefix Tree)

Design a trie that supports inserting words and searching words or prefixes.