By doing the same thing with the tail (of course).
Here is that idea, expressed in a recursive definition:
""
is ""
."Xtail"
is the reverse of "tail"
followed by "X"
X
means any single character,tail
means the tail of the string.
The reverse of "X"
is "X"
. Does the above definition handle this?