Intel Corporation Interview Question

leetcode 20. Valid Parentheses https://leetcode.com/problems/valid-parentheses/