input: Write a function to reverse a string.
  assert reverse_string("hello") == "olleh"
  assert reverse_string("python") == "nohtyp"
  assert reverse_string("a") == "a"
  assert reverse_string("racecar") == "racecar"
output: def reverse_string(s):
      return s[::-1]