ByteDance Interview Question

How to design a memory-pool?