217. Reverse a String by Recursion
Print the given string backwards.
Recursively: the reverse of a string is its last character followed by the reverse of everything before it. The base case is the empty string, whose reverse is itself.
Do not build the answer by adding one character at a time to the front of a string in a loop. In most languages that copies the whole string each time, which turns a linear job into a quadratic one.
Constraints - `1 ≤ length of s ≤ 200000`
Input
A single line containing a string s, made of printable characters with no spaces.
Output
Print the characters of s in reverse order.
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.