//Editorial: In the https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements/solutions/4330616/c-python-java-explained/ ...