올바른 괄호
def solution(s): left, right = 0,0 s = list(s) while s: if left > right: return False tmp = s.pop() if tmp == '(': left += 1 else: right += 1 if left != right: return False return True