input: def optimize_reverse_string(script: str) -> str:
      """ Optimize the given Python script that reverses a string.
      >>> optimize_reverse_string("def reverse_string(string):\\n    reversed_string = \"\"\\n    for char in string:\\n        reversed_string = char + reversed_string\\n    return reversed_string")
      "def reverse_string(string):\\n    return string[::-1]"
      """
output:     optimized_script = script.replace("reversed_string = \"\"", "return string[::-1]")
      optimized_script = optimized_script.replace("for char in string:\\n        reversed_string = char + reversed_string\\n    return reversed_string", "")
      return optimized_script