Capgemini interview question

You have an array of elements and you have to remove duplicate elements from the array. Explain the pseudo code