NVIDIA interview question

Write code for how to remove duplicate elements in an array