Apple Interview Question

Not difficult or anything unexpected