The function rearranges the characters in the input string by moving the first character to the end.
