overlapping_interval function

Find the overlapping interval of two ranges.