Envestnet interview question

To reverse a string using recursion function