Digital Dictionary using hashing

I have tried this question using hashing but there are extra no suggestion. Any help?
https://ide.codingblocks.com/s/67812

@hardik.somani02 hey hardik this question will be implement with the help of trie i will suggest to go through with trie video definitely you will figure out

Yes I know this can be implemented with tries but If I want to do with hashing i am getting wrong output.

@hardik.somani02 hey hardik this question design to learn the implement using trie so it better pratice to use trie instead of hash map