Question d’entretien chez Apple

Find repeated elements. Find intersection of 2 sets.