Maximum Swap Leetcode Javascript Questions Hackerrank Problem