https://image2.slideserve.com/4639214/fixing-array-sum1-t.jpg