Insert Intervals

Given a collection of non-overlapping intervals, represented as pairs of integers [start, end], where start denotes the start time of…