Domanda di colloquio di Bentley Systems

Make a program that matches opened and closed brackets.