Garmin interview question

Write a code to remove duplicates from an array in c++