Capgemini Interview Question

Write the code to remove duplicates from array.