Maximum Swap Leetcode Javascript Practice Test