Quick Sort Leetcode Practice Java