TrieTree homework