Challenge problem

can anyone tell me output if my input is 123?

Hey @VinayakSingh11111
adg adh adi aeg aeh aei afg afh afi bdg bdh bdi beg beh bei bfg bfh bfi cdg cdh cdi ceg ceh cei cfg cfh cfi
27

can anyone help me with the steps to solve this?

@VinayakSingh11111
we use recursion.

  1. Create a database table to store all characters correspond to digit i in the keyboard.
  2. We store all possible words that can be obtained by input string[] of size n.
  3. We store words in ans string
  4. Try all possible characters for current digit and recursion for remaining digits.
  5. We print the final ans string