OpenText interview question

Balanced Parenthesis