reverse_str(s) that returns s reversed, built up recursively (no s[::-1] slicing shortcut and no loop).reverse_str('hello')'olleh'
Each call strips the first char and appends it after the reversed remainder.
reverse_str('a')'a'
Single character is the base case.
Base case: len(s) <= 1, return s.
Recursive case: reverse_str(s[1:]) + s[0].