Implement Trie Prefix Tree Leetcode Solution 8620