[LC] Add solution to merge intervals.