Pregunta de entrevista de Freshworks

Check for balanced parentheses in an expression