Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 2 , 7 , 1 , 4 ] NEW_LINE n = len ( arr ) NEW_LINE K = 7 NEW_LINE v = maxSubArray ( arr , n , K ) NEW_LINE print ( v ) NEW_LINE DEDENT