Pregunta de entrevista de Global Payments

Coding challenge - check for balanced parentheses