Pluralsight interview question

Find if the string is balanced of brackets using stack