JFrog Interview Question

Implement a thread pool with a list instead of a queue.