Sorting Problems In Leetcode 1508