Playground Games interview question

Matching brackets in a string.