PubMatic Interview Question

solving the balanced parentheses problem using my own created stack class