Design a connection pool
Anonimo
I had used the semaphore to design the connection pool, looks like the person taking the interview got confused and wanted to have his own solution instead of other approaches(for reference "Counting semaphores can be used to implement resource pools or to impose a bound on a collection." from "Java Concurrency in Practice