Pergunta de entrevista da empresa Codesmith

They asked me the balancing brackets question