code: def Trie(S):
      
      T = None
      for w in S:
          T = add(T, w)
      return T
docs: :param S: set of words
      :returns: trie containing all words from S
      :complexity: linear in total word sizes from S