Oracle interview question

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