Checks if two intervals overlap.
The left interval.
The right interval.
Whether the intervals overlap.
Checks if two intervals overlap.