Zillow Interview Question

A variant of Valid parentheses Leetcode medium