Walmart Global Tech interview question

Recursive method to reverse a string