RECURSION-DICTIONARY ORDER(LARGER)
Stuck At This Problem? Read Editorial Here.
Take as input str, a string. Write a recursive function which prints all the words possible by rearranging the characters of this string which are in dictionary order larger than the given string
Input Format:
Enter a string
Constraints:
None
Output Format
Display all the words larger than the string entered in separate lines
Sample Input
cab
Sample Output
cba