func_code: def reverse(test):
      n = len(test)
      x = ''
      for i in range(n - 1, -1, -1):
          x += test[i]
      return x
annotation: def reverse(test):
      n = len(test)
      x = []
      for i in range(n - 1, -1, -1):
          x.append(test[i])
      return x
  