Trie interview question


giving run time error,modifications required?