Apple Interview Question

NDA unfortunately. Some design and some algos