Domanda di colloquio di Cisco

Check if a string is balanced (with parentheses, brackets etc.)