Apple Interview Question

How to save to memory without holes