Cisco Interview Question

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