Question d’entretien chez Amazon

Explain this piece of code efficiently