Meta interview question

Determine if parentheses are correct in a string of characters using an algorithm