Pergunta de entrevista da empresa Bizzabo

A threading question, analyzing the runtime of the code