The function seems to reverse the input string.

