Pergunta de entrevista da empresa Pluralsight

Find if the string is balanced of brackets using stack