Merge IntervalsGiven a list of interval objects, merge all overlapping intervals and return the result.