Chatham Financial Interview Question

Parenthesis validation