TEOCO Interview Question

Check for Balanced Brackets in an expression