Function to insert all the words of dict in the Trie
def insertToTrie ( dictionary , n , root ) : NEW_LINE INDENT for i in range ( n ) : NEW_LINE INDENT insert ( root , dictionary [ i ] ) ; NEW_LINE DEDENT DEDENT