Leetcode Unique Element In Python How To Sort An Entire