Quick Sort Question Leetcode Sql