Pregunta de entrevista de Playground Games

Matching brackets in a string.