class Solution: content = {'{':'}', '(':')', '[':']'} c_valid=[] flag = True def isValid(self , s: str) -> bool:  ...