Write a function to reverse a string using a stack.
Asked in the online technical assessment stage. Implement reverse_string(s) and return the reversed string.
reverse_string(s)
s
def reverse_string(s):
Your question is Reverse String with Stack. Start with the requirements in the Question tab.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.