Automattic interview question

Write a function that remove duplicates