Tripadvisor Interview Question

Valid parentheses Leetcode question was asked at Round 2.