Soltion to reversing a string using recursion