Meta Interview Question

Validity of an expression string