Capgemini interview question

Write the code to remove duplicates from array.