PointClickCare interview question

Leetcode valid parentheses and multiple variations