Optiver interview question

One question about using semaphone to achieve threads synchronization.