Microsoft interview question

question on semaphores