Upwind interview question

Merge intervals question - Merge overlapping intervals into non-overlapping intervals, sorting by start time