Freshworks Interview Question

Check for balanced parentheses in an expression