Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can you simulate the process?
Use brute force to find the leftmost free block and free each occupied memory unit
Solve with full IDE support and test cases