Question d’entretien chez Amazon

Just a basic question from Cracking the Coding Interview