Nabla interview question

Leetcode #20 task: Matching Parentheses