NVIDIA Interview Question

remove duplicates from array in place