Apple Interview Question

mostly related to their project