Question d’entretien chez PwC

Write a code to remove duplicates in a array in java