Mozilla Interview Question

Determine whether a string of brackets+parens is balanced.