Design autocomplete with Trie | Google Interview Question