Challenge
Implement string_reversal(word), returning the characters of the Python string in reverse order. Preserve spaces, case, punctuation, and Unicode code points. The empty string returns the empty string. Reverse code points, not grapheme clusters. Do not print the answer.
Target complexity: O(n)
Return values are checked by type. Use the exact function name. Print output is not your answer. Tests have time and memory limits.
Public examples
Arguments
['EverythingQuant']
Expected return
tnauQgnihtyrevE
Arguments
['ab']
Expected return
ba
Hint
Match the return value and type to the contract.
The worked solution unlocks after completion, or with Premium access.