올바르게 괄호가 닫혀있는지 판단하기
def solution(s): stack = [] for p in s: if p == '(': stack.append(p) else: if not stack: return False stack.pop() return not stack