Random queue: how many taller-behind-shorter pairs?
Five people, all of different heights, line up in a completely random order from front to back. Consider every pair of people: the pair is "misordered" if the taller person is standing somewhere behind the shorter one.
On average, how many misordered pairs are there in the line of 5?