Write a function to reverse a string
def reverse(string) # your magic end
reverse("hello world") # should return "dlrow olleh"