Segments excluding ' lesser ' and ' greater ' gives the number of intersections
if ( ( N - lesser - greater ) >= numIntersections ) { answer = new int [ ] { segments [ i ] [ 0 ] , segments [ i ] [ 1 ] } ;