overlapping_interval: Find the overlapping interval of two ranges.
Description
This function should be applied to cases where the two ranges are
inclusive of both endpoints. For example, the function can work for
a pair of ranges like [0, 1] and [3, 4] but not for pairs like
[0, 1\) and \(3, 5\)