Sensibill Interview Question

Use any programming language to check the brackets are balanced