Tripadvisor Interview Question

Balanced brackets leetcode problem, starting with one set of brackets then added different types