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_2 , var_3 , var_4 = 0 , 0 , 0
      for var_5 in range ( len ( var_0 ) ) :
          var_6 = var_0 [ var_5 ] - var_1 [ var_5 ]
          var_4 += var_6
          var_3 += var_6
          if var_3 < 0 :
              var_2 = var_5 + 1
              var_3 = 0
      if var_4 >= 0 :
          return var_2
      return - 1
  