Meta Interview Question

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