So I've been working on this problem today in Java. I feel like I'm coming close to possibly having AC, but I've run into an issue of not being able to sort the list of permutations of a string that I have in such a way that A > a > B > b > C > ... Is there a way to overcome this?
Has anyone been in this sort of situation before? Could I avoid this situation altogether by taking a separate route in solving this problem. Below is my code. Thanks for reading.