Microsoft Interview Question

question on semaphores