Solved Merge Interval problem