Pergunta de entrevista da empresa Zillow

Determine if parenthesis in a string all have valid matches