Driver Code
public static void main ( String [ ] args ) { int arr [ ] [ ] = { { 1 , 6 } , { 5 , 5 } , { 2 , 3 } } ; int N = arr . length ; System . out . println ( maximumIntersections ( arr , N ) ) ; } }