Driver Code
int main ( ) { int arr [ ] = { -2 , 1 , 3 , -2 , 4 , -7 , 20 } ; int K = 1 ; int N = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; cout << MaximumSubarraySum ( N , arr , K ) << endl ; return 0 ; }