LogicMonitor interview question

validate parantheses