Https://ide.codingblocks.com/s/164095

please help it is not passing any of the test cases

Hello @sarthaksingh,

You have missed a very important part of the problem:
If a word with prefix does not exist in the database, then you need to print No suggestions.
Also, you have to insert that prefix to the dictionary.

I have modified your code:

Hope, this would help.
Give a like if you are satisfied.