Question d’entretien chez Amazon

Question on array and frequency of elements