Similar ProblemsAll Permutations of a String 3 in Lexicographic OrderEasyAll Permutations of a String with duplicate charactersMediumKth Permutation Sequence of Numbers 1 to NHard