Improve MergeIntervals.java

NA