Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. Make sure the returned intervals are sorted. Note:You only need to implement the given function. Do not read input, instead use the ...