DIY: Merge Intervals

Solve the interview question "Merge Intervals" in this lesson.

Problem statement

You are given a ...