The function reverses the order of characters in a given string.
