Sort all the strings ( lexicographically ) but if a string is present completely as a prefix in another string, then string with longer length should come first

one test case is failed , tell me how i fixed it ?

Hi @souravraj024

Increase the size of the string from 100 to 1000. And your program will work fine.

Hope it Helps.