Merge Intervals

56. Merge Intervals

if we sort intervals by the start endpoint of an interval, those merge-able intervals must be consecutive.