Automattic Interview Question

Write a function that remove duplicates