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

I am an average student so I want to clear my doubt on the video/audio call, if possible because I am not able to catch the logic of this program.

@Tiwary725 you can call me on number 7015208814 ,I will clear your doubt.