comefrom: <garvit244>1191_2.py
code: def prefix(arr):
      curr_sum, max_val = 0, float('-inf')
      for index, val in enumerate(arr):
          curr_sum += val
          max_val = max(max_val, curr_sum)
      return max_val
masked: def sample_funcname ( var_0 ) :
      var_2 , var_5 = 0 , float ( '-inf' )
      for var_7 , var_8 in enumerate ( var_0 ) :
          var_2 += var_8
          var_5 = max ( var_5 , var_2 )
      return var_5
  