comefrom: <garvit244>1014_1.py
code: def maxScoreSightseeingPair( A):
      prev_best, result = 0, 0
      for index in range(0, len(A)):
          result = max(result, A[index]-index+prev_best)
          prev_best = max(prev_best, A[index]+index)
      return result
masked: def sample_funcname ( var_0 ) :
      var_2 , var_3 = 0 , 0
      for var_6 in range ( 0 , len ( var_0 ) ) :
          var_3 = max ( var_3 , var_0 [ var_6 ] - var_6 + var_2 )
          var_2 = max ( var_2 , var_0 [ var_6 ] + var_6 )
      return var_3
  