Chatham Financial Interview Question

Paranthesis validation