Question d’entretien chez Microsoft

optimized sum of array elements divisible by x