Microsoft interview question

optimized sum of array elements divisible by x