I am returning all the permutations of string stored in arraylist to main.
And then in main I’m comparing each permutaion to my original string using compareTo() ,if it is smaller then it is printed.
I’m getting the correct ressult but 2 test cases are not passing.