Microsoft Interview Question

Implement a counting semaphore using only binary mutexes