Here is one of the classic tasks of computer science — check for paired brackets. You get a string with brackets. It can be a correct layout like (())() or a string with missing brackets ())() (the open bracket is missing). You need to find strings with broken layout and print out an error message. Try to solve it using a Queue structure.
Note that the Queue 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, check out the following suggestions:
If it's an open bracket, Push it to the structure;
If it's a closed bracket, Pop the value from the Queue structure;
If the Pop function returns an error, it means the layout is broken;
In the end, you need to Pop the last value;
If the last value exists, it means the layout is broken;
If the structure is empty, it means the layout is correct.