Pregunta de entrevista de OpenTable

Balance parentheses, brackets, braces in a string.