Cornerstone OnDemand Interview Question

Validate an expression with matching brackets.