[LintCode] Merge Intervals