Count Unhappy Friends
Simulate each friend's preference ranking to count friends who would rather switch to someone who prefers them back.
Simulate each friend's preference ranking to count friends who would rather switch to someone who prefers them back.