you give 2D integer array intervals intervalsi lefti righti represent inclusive interval lefti rightiyou divide interval group interval exactly group interval group intersect otherreturn minimum number group need makeTwo interval intersect common number for example interval 1 5 5 8 intersect Example 1input interval 510681523110output 3explanation we divide interval follow group Group 1 1 5 6 8 Group 2 2 3 5 10 Group 3 1 10it prove possible divide interval few 3 groupsExample 2input interval 13568101113output 1explanation none interval overlap group Constraints1 intervalslength 105intervalsilength 21 lefti righti 106