Given a list, sort the list and remove any duplicated elements. Return a new list.
Sample Code:
def onlyOne(l):
# Enter your logic here...
Examples:
Input: ['C','Javascript','Java','Python','Javascript']
Output:["C","Java","Javascript","Python"]
Explanation: The number of occurence can only be 1 for each elements.
Input: [0,0,1,1,0]
Output: [0,1]
Explanation: The number of occurence can only be 1 for each elements.