Tree Traversal Target: 15s
Trie insert walks and creates nodes character by character. O(word length) per insert.
def insert(root, word):
node = root
for c in word:
if c not in node.children:
node.children[c] = TrieNode()
node = node.children[c]
node.end = True
Type it from memory. Go.