Meta interview question

Parentheses question on Leetcode (Easy)