Update mergeIntervals.cpp