Implement a reusable DB connection pool.
Design a component that manages a fixed set of database connections and allows clients to acquire and release them efficiently.
This problem is about designing a reusable database connection pool that manages connections as shared resources. A good solution typically keeps track of idle and in-use connections, supports acquire and release operations, and handles cases where the pool is exhausted through waiting, timeout, or rejection. Interview follow-ups often focus on thread safety, concurrency control, connection validation, and maximum pool size.