comefrom: <qiyuangong>717_1-bit_and_2-bit_Characters_1.py
code: def isOneBitCharacter( bits: List[int]) -> bool:
      pos = 0
      while pos < len(bits) - 1:
          pos += bits[pos] + 1
      return pos == len(bits) - 1
masked: def sample_funcname ( var_0 : List [ int ] ) -> bool :
      var_5 = 0
      while var_5 < len ( var_0 ) - 1 :
          var_5 += var_0 [ var_5 ] + 1
      return var_5 == len ( var_0 ) - 1
  