Question d’entretien chez Apple

Here is a code, find bugs in it