Question d’entretien chez Amazon

dsa question from array manipulation and set operation