Given a list of intervals where each interval is represented as a pair of start and end times, merge all overlapping intervals to produce a list of non-overlapping intervals that cover all of the original intervals.
Difficulty: Medium Topic: Array Manipulation
Check out the documentation about this topic here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort