Sorted Unique Permutation Leetcode