Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ - 9 , 21 , 24 , 24 , - 51 , - 6 , 17 , - 42 , - 39 , 33 ] NEW_LINE size = len ( arr ) NEW_LINE print ( maxSum ( arr , size ) ) NEW_LINE DEDENT