Question d’entretien chez Apple

Simple Algorithm Question. Also some computer vision questions.