iQmetrix interview question

Stack questions about matching brackets from leetcode