Driver Code
var arr = Array ( ) ; arr . push ( [ 1 , 4 ] ) ; arr . push ( [ 2 , 2 ] ) ; arr . push ( [ 2 , 3 ] ) ; var n = arr . length ; if ( checkNonOverlapping ( arr , n ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }