Pergunta de entrevista da empresa Global Payments

Coding challenge - check for balanced parentheses