Quick Sort Leetcode Problems Sql Server