Quick Sort Questions Leetcode Sql