HCLTech Interview Question

Program to identify open and closed brackets