Write code to determine if a given input string contains balanced parentheses.
Anonimo
loop each character If see a "(" --- push, If see a ")" --- if stack empty, not balanced, else pop. if other char, discard end if stack not empty, not balanced, else balanced.