Smart keypad advanced problem

I have a doubt in the question and I will be rellly glad if you will be able to clear it.
If the input is of length greater than any of the strings , then what should I be printing ?
Say for example, if I give 23456789 and the longest string is of length 7, say “prateek”. What do I print in this case, since the input will not have a substring in the string prateek, all the strings formed from the input will be greater than prateek.

hello @rahul.gupta03111999
for such cases print nothing

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.