Pregunta de entrevista de Microsoft

Check for Balanced Brackets in an expression.