This is a
solution to
problem 4 on the
hard interview questions node. If you have not read the
question, the
following will make no
sense to you:
Identify the character you want to be at the front of the string after the rotation. Then divide the string into two halves such that this character is the first character in the second half. Reverse each half in place, then reverse the resulting string.