Amazon Interview Question

Check if parenthesis in an expression are balanced