Amazon Interview Question

Minimum number of contiguous memory chunks to remove that minimizes memory usage.