Apple interview question

Find repeated elements. Find intersection of 2 sets.