Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { - 2 , 1 , 3 , - 2 , 4 , - 7 , 20 } ; int K = 1 ; int N = arr . length ; System . out . print ( MaximumSubarraySum ( N , arr , K ) + "NEW_LINE"); } }