Johnson & Johnson interview question

Valid Parentheses Leetcode question, asked about resume