Frage im Vorstellungsgespräch bei PubMatic

solving the balanced parentheses problem using my own created stack class