Twitch interview question

Valid parentheses - Leetcode question