Driver Code
int main ( ) { vector < vector < int > > arr = { { 1 , 4 } , { 2 , 2 } , { 2 , 3 } } ; int n = arr . size ( ) ; if ( checkNonOverlapping ( arr , n ) ) { cout << " YES " << endl ; } else { cout << " NO " << endl ; } return 0 ; }