Clario interview question

Remove duplicates from array in java