Apple Interview Question

Difficult algorithm questions on system design