Well-Ordered Permutations of a String

Well-Ordered Permutations of a String - Coding Problem | K5kC