Question d’entretien chez Garmin

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