Quick Sort Leetcode Problems Python