Quick Sort Leetcode Practice Python