레벨2 문제
def solution(s):
arr = []
for i in s:
if ( i == ')' and len(arr) != 0 and arr[-1] == '(' ):
arr.pop()
else:
arr.append(i)
if ( len(arr) == 0 ):
answer = True
else:
answer = False
return answer