Pergunta de entrevista da empresa Credit Karma

find if a string is balanced number of brackets