Solve Merge Intervals