Pergunta de entrevista da empresa Microsoft

Check for Balanced Brackets in an expression.