Lexicographically Smallest Permutation Greater Than Target
Keep the longest prefix of target that can be reused, bump the next letter upward, and sort the rest.
Keep the longest prefix of target that can be reused, bump the next letter upward, and sort the rest.