Maximum Swap Leetcode Javascript Practice Programs