comefrom: <garvit244>134_1.py
code: def canCompleteCircuit( gas, cost):
      start, curr_sum, total_sum =0, 0, 0
      for index in range(len(gas)):
          diff = gas[index] - cost[index]
          total_sum += diff
          curr_sum += diff
          
          if curr_sum < 0:
              start = index + 1
              curr_sum = 0
              
      if total_sum >= 0:
          return start
      return -1
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 , var_4 , var_5 = 0 , 0 , 0
      for var_8 in range ( len ( var_0 ) ) :
          var_9 = var_0 [ var_8 ] - var_1 [ var_8 ]
          var_5 += var_9
          var_4 += var_9
          if var_4 < 0 :
              var_3 = var_8 + 1
              var_4 = 0
      if var_5 >= 0 :
          return var_3
      return - 1
  