Given a string s, return a new string containing the characters of s in reverse order using recursion. The function should handle empty strings, single-character strings, and longer inputs correctly.
Constraints
0 <= len(s) <= 10^4
s consists of printable characters
The solution must use recursion
Function Signature
defreverse_string_recursive(s):
Interviewer
Whenever you're ready, walk me through your approach or go straight to the code. The requirements are in the Question tab.