Maximum Swap Leetcode Javascript Problems Practice