The function reverses a given string.

