Sorted Unique Permutation Leetcode Solution 1923