input: Write a function to format text by adding '#' before uppercase letters.
  assert format_text("Hello World") == "'#H'ello '#W'orld"
  assert format_text("Python") == "'#P'ython"
  assert format_text("javaSCRIPT") == "java'#S'CRIPT"
output: def format_text(text):
      result = ""
      for char in text:
          if char.isupper():
              result += f"'#{char}'"
          else:
              result += char
      return result