OpenTable Interview Question

Balance parentheses, brackets, braces in a string.