Intuit interview question

Check a string if parentheses are balanced