Wealthsimple Interview Question

Build a trie.