Frage im Vorstellungsgespräch bei Oracle

Coding problem to use Java threads and semaphores to synchronize processes.