ByteDance interview question

How to design a memory-pool?