Driver code
public static void main ( String [ ] args ) { int arr [ ] [ ] = { { 1 , 7 , 3 , 4 } , { 4 , 2 , 5 , 1 } , { 9 , 5 , 1 , 8 } } ; int n = arr . length ; System . out . print ( maximumSum ( arr , n ) ) ; } }