Number of Intersecting Interval Pairs I
Check each pair of closed intervals and count the pairs that share at least one point, including a shared endpoint.
Check each pair of closed intervals and count the pairs that share at least one point, including a shared endpoint.