Tries-digital dictionary

would you helpme in finding where my code fails for the testcases
is this is an input and output :
3
abc
Ab
Abb
2
ab
A
output:
abc Ab Abb
abc Ab Abb

@Saikumar009
abc
Ab
Abb
will be the correct answer for the input

thanks for answering the output @aa1

@Saikumar009
mark your doubt as resolved and rate as well :slight_smile: