Couldn't understand anything what the tutor has done after calculation of elements in the cumulative sum array

Can anyone of please provide me your number so that I could clear my doubts ? :sob::sob: