Avanza interview question

Create a program to remove duplicates from an array.