comefrom: <garvit244>1191_3.py
code: def kadane(arr):
      curr_sum, max_sum = arr[0], arr[0]
      for index in range(1, len(arr)):
          curr_sum = max(arr[index], curr_sum + arr[index])
          max_sum = max(max_sum, curr_sum)
      return max_sum
masked: def sample_funcname ( var_0 ) :
      var_2 , var_3 = var_0 [ 0 ] , var_0 [ 0 ]
      for var_7 in range ( 1 , len ( var_0 ) ) :
          var_2 = max ( var_0 [ var_7 ] , var_2 + var_0 [ var_7 ] )
          var_3 = max ( var_3 , var_2 )
      return var_3
  