Dictionary Small order

https://ide.codingblocks.com/s/175327 Code is wrong answer for 3 test cases

Hey @Ajitverma1503 Your output is not lexicographically sorted.
So instead of printing the strings(line 16) store them in a vector of strings.
And then after all the calls are finished ,in your main() function sort this vector of strings and then print them by traversing this sorted vector.