Question d’entretien chez Amazon

Two programming tests, randomly determined.