IBM interview question

How do remove duplicates from list in one line