Cisco Interview Question

Q:Find if the parentheses are balanced using stack.