input: def reverse_string(string: str) -> str:
      """
      Optimize the function that reverses a given string.
      
      >>> reverse_string('hello')
      'olleh'
      >>> reverse_string('Python')
      'nohtyP'
      """
output:     return string[::-1]