LeetCode
Maximum Swap
Click
here
for an explanation.