Pregunta de entrevista de Bizzabo

A threading question, analyzing the runtime of the code