Function will insert the string in a trie recursively
def insertRecursively ( itr , str , i ) : NEW_LINE INDENT if ( i < len ( str ) ) : NEW_LINE INDENT index = ord ( str [ i ] ) - ord ( ' a ' ) NEW_LINE if ( itr . child [ index ] == None ) : NEW_LINE DEDENT DEDENT