Pergunta de entrevista da empresa Jump Trading

What would be the output with these semaphores