Sort An Array Using Recursion Leetcode