Your question is Reverse a String Without Built-ins. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
The Amazon Alexa test harness receives text payloads that may need to be reversed for validation. Write a function that returns the characters of a string in reverse order without using built-in reversal operations.
You may use character indexing, len, loops, and string concatenation. Do not use slicing such as s[::-1], reversed, list.reverse, join, or any library method that directly reverses or assembles the string.
Implement reverse_string(s), where:
s is a Python string containing zero or more Unicode characters.def reverse_string(s):