670. Maximum Swap - Explanation

Problem Link