Nagarro interview question

Describe semaphores