I’m trying to understand the answer for the last quiz on Chapter 1. I used stack overflow to try and come up with a radically different solution(still trying to figure it out). But my question is with the answer given, specifically with $setIntersection:
It seems to me, that using this would eliminate the duplicates, instead of return them so that we could count them. What am I missing here?