Domanda di colloquio di First Derivatives

Stack parentheses question from leetcode