Please explain what we have to do in this code.
What is the question trying to explain?
@dhruvtrehan45, this problem is continuation of smart keypad problem ,if you have’nt done this problem then i will suggest you to do that first,
assuming you did that question let me proceed
in this question what you have to do is to print all of the possible strings from the given array that contains code generated by given number.
Now to compute string from given number you need help from below array
vector<string> table = {" ", ".+@$", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
for input 34,
it will generate a string of size 2 where the first character will be generated by 3 which will pick any char from table[3] which is “def” and 4 will generate character belonging to string table[4] which is “ghi”
So,
34 will result into combinations :
*dg *eg *fg
*dh *eh *fh
*di *ei *fi
Corresponding strings are output.
- as vidhi contains dh
- as divyam contains di
- as sneha contains eh
for solution ref :-
(i have explained the logic along with code)
In case of any doubt feel free to ask 
mark your doubt as resolved if you got the answer