Pregunta de entrevista de Garmin

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