Soroco interview question

CTO Round- Situation based question about Semaphores