D-SIMLAB interview question

How to optimize the allocation time