TikTok Interview Question

2. Balance Parantheses. Almost the same as (https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)