Pergunta de entrevista da empresa Zearn

if parentheses syntax is closed or not from a given string