T. Rowe Price interview question

Find matching parantheses given an input string