Question d’entretien chez Amazon

Two LP, one very easy list-like coding problem.