func_code: def index(string, letter):
      i = 0
      a = []
      while i < len(string):
          a.append(string[i])
          if string[i] == letter:
              return i
          i = i + 1
      if letter not in a:
          return '-1'