Ответсообщение недоступно
Add open parentheses as key and closed parentheses as value to the dictionary.
If you encounter the key, add it to the stack. If not pop it from the stack and find the value is equal. If not open or closed parentheses, ignore