Here's Reverse a String, one of the classic tasks of computer science. You get a string and need to output the reversed version. Try to solve it using a Stack structure.
Note that the
Stack struct is already declared and set up to store rune values for this task.Don't think about how to read the input and return an answer, focus on the task. If you are stuck, welcome to the HINT section.
- Tip:
Pushcharacters one by one; - Tip:
Popit, until the error.