Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 10 , 12 , 9 , 8 , 10 , 15 , 1 , 3 , 2 ] NEW_LINE K = 3 NEW_LINE N = len ( arr ) NEW_LINE print ( maximumSum ( arr , N , K ) ) NEW_LINE DEDENT