NVIDIA Interview Question

Write code for how to remove duplicate elements in an array