JFrog interview question

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