How would you implement a stack and use it to reverse a string?
Implement reverse_string(s) using a stack with push and pop operations. Return a new string containing the characters of s in reverse order. The input is a string, and the output is a string. Preserve spaces, punctuation, repeated characters, and capitalization exactly.
def reverse_string(s):