Question d’entretien chez Cisco

Q:Find if the parentheses are balanced using stack.