2 testcases are not submitting out of four

code:https://ide.codingblocks.com/s/130910
approach: permute the string to get all strings,and then check which one is greater in base case.

@shakul https://ide.codingblocks.com/s/130966
Try submitting it now.

Input: abc
Expected Output:
acb
bac
bca
cab
cba
Your code’s output:
acb
bac
bca
cba
cab

Your code was generating the correct permutations of string but the order was different from what desired by the test case. To get that order, you are not required to do backtracking here.