Pregunta de entrevista de PubMatic

solving the balanced parentheses problem using my own created stack class