💡 Digital Dictionary

why is this code showing wrong answer ?
though the output seems to be ok https://ide.codingblocks.com/s/98786

Hi you need to ignore the cases and then attempt the question
For eg, Pe and pe both are prefix to peter

@priyanka123 ma’am i did the changes suggested by you but still it is showing wrong answer

I guess not
4
pet
PeTer
rat
rack
5
Pe
pet
r
rac
rat
is giving
No suggestions
pet
peter
rack
rat
rack
rat
as ouput… Please check that case of queries is also not considered,caps, no caps should not matter in either case