input: Write a function to design a positive feedback loop for the given Python program. The input program prints "hello" 10 times. After modifying the program, it should print "hello" 10 times and then print "You've got it!" when the loop completes.
  
  def add_feedback_loop(code):
      code = code.replace("for i in range(10):", "for i in range(10):")
      code = code.replace("print(\"hello\")", "print(\"hello\")\ni += 1\nif i == 10:\n    print(\"You've got it!\")")
      return code
  
  assert add_feedback_loop("for i in range(10):\n    print(\"hello\")")==\
  "for i in range(10):\n    print(\"hello\")\n    i += 1\n    if i == 10:\n        print(\"You've got it!\")"
output: def add_feedback_loop(code):
      code = code.replace("for i in range(10):", "for i in range(10):")
      code = code.replace("print(\"hello\")", "print(\"hello\")\n    i += 1\n    if i == 10:\n        print(\"You've got it!\")")
      return code