Question d’entretien chez Amazon

Both coding questions were easy