Cisco interview question

Q:Find if the parentheses are balanced using stack.