Minimum Window Sort Leetcode Javascript Solutions