Maximum Number of Pairs in Array
Values wait for a partner: each match forms one pair, and whatever is still waiting at the end is the leftover.
Values wait for a partner: each match forms one pair, and whatever is still waiting at the end is the leftover.