Given an array of intervals where intervals[i] = [start, end] , return the minimum number of intervals you must remove so that the remaining intervals do not overlap. Intervals that only touch at an endpoint (e.g. [1,2] and [2,3] ) are not considered overlapping. Input format Input is [intervals] , e.g. [[[1,2],[2,3],[3,4],[1,3]]] .