Select your answers. Once selected, you cannot change them.
Given a list of intervals where each interval is a pair of integers [start, end], merge all overlapping intervals.
Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]]
Write your solution below: