Interval List Intersections
Examples
Example 1:
Input: firstList = [[0,10],[20,30]], secondList = [[5,8],[15,22]]
Output: [[5,8],[20,22]]
Example 2:
Input: firstList = [[0,2],[5,10],[13,23],[24,25]], secondList = [[1,5],[8,12],[15,24],[25,26]]
Output: [[1,2],[5,5],[8,10],[15,23],[24,24],[25,25]]