Smart Keypad - Advanced

i am not able to understand question so i want hints

@17manishms
Please first see this


This question is an extension of it
After finding all possible digits starting with str, do brute force search if any name in input matches with the found prefixes

If your doubt is resolved please close it