Explanation of doubt

Can someone explain the question Smart Keypad- Advanced. I’m not able to understand the question
Given a long vector of strings, print the strings that contain the strings generated by numeric string str.

string searchIn [] = {
“prateek”, “sneha”, “deepak”, “arnav”, “shikha”, “palak”,
“utkarsh”, “divyam”, “vidhi”, “sparsh”, “akku”
};
For example, if the input is 26 and the string is coding, then output should be coding since 26 can produce co which is contained in coding.

Hello @vanshika1205

In this question you need to print those strings (from searchIn array) that contain the strings generated by the alphabetical combination of number given as the input

Ex:- 26
2 => a,b,c
6 => m,n,o
So print all those strings that contain these combinations
am, an, ao, bm, bn, bo, cm, cn, co

divyam is printed as it contains “am” in it.
Also coding should Not be printed as it is Not in the searchIn array

Also you only need to print strings from these only
string searchIn [] = {
“prateek”, “sneha”, “deepak”, “arnav”, “shikha”, “palak”,
“utkarsh”, “divyam”, “vidhi”, “sparsh”, “akku”
};

Let me know if you still need any help.