Driver Code
int main ( ) { int n = 3 , m = 4 , p = 9 ; int grid [ R ] [ C ] = { { 2 , 3 , 4 , 1 } , { 6 , 5 , 5 , 3 } , { 5 , 2 , 3 , 4 } } ; cout << maximumValue ( n , m , p , grid ) << endl ; return 0 ; }