you give array intervals intervalsi starti endi starti uniquethe right interval interval interval j startj endi startj minimize Note equal jReturn array right interval index interval if right interval exist interval 1 index Example 1input interval 12output 1explanation there interval collection output 1example 2input interval 342312output 101explanation there right interval 34the right interval 23 34 start0 3 small start end1 3the right interval 12 23 start1 2 small start end2 2example 3input interval 142334output 121explanation there right interval 14 34the right interval 23 34 start2 3 small start end1 3 Constraints1 intervalslength 2 104intervalsilength 2106 starti endi 106the start point interval unique