Question d’entretien chez Amazon

two sum of a consecutive array