Rosetta Problems

Lexicographically Smallest String After a Swap

https://leetcode.com/problems/lexicographically-smallest-string-after-a-swap