Quick Sort Question Leetcode Javascript Question