Similar ProblemsAll Permutations of a String with duplicate charactersMediumK-th Lexicographic Permutation of a StringMedium