Desquared Interview Question

Merge Intervals leetcode problem 56