Consider all suffixes of given string and insert them into the Suffix Trie using recursive function insertSuffix ( ) in SuffixTrieNode class
for ( int i = 0 ; i < s . Length ; i ++ ) root . insertSuffix ( s . Substring ( i ) ) ; }