Frage im Vorstellungsgespräch bei Bloomberg

Implement a mutex. Using binary semaphore, implement an n-counting semaphore.