Meta Interview Question

Trie tree problem