Pergunta de entrevista da empresa Meta

Balancing the brackets, find the amount of missing brackets.