Update mergeIntervals.java