Sorted Unique Permutation Leetcode Solution 862 Area