Examples
Input: intervals = [[1,5],[6,10],[11,15]]
Output: [[1,5],[6,10],[11,15]]
Explanation: None of the intervals overlap, so they remain the same.
Input: intervals = [[1,3],[3,5]]
Output: [[1,5]]
Explanation: Intervals [1,3] and [3,5] are considered overlapping and are therefore are merged into [1,5].
Input: intervals = [[1,5],[2,4],[4,6],[7,8]]
Output: [[1,6],[7,8]]
Explanation: Intervals [1,5], [2,4] and [4,6] are considered overlapping and are therefore merged into [1,6].