Meta interview question

Trie tree problem