GoTo interview question

Trie data structure