Why we added that extra block when we were calculating cumulative sum?

why did we add that extra block at the first position when we were calculating the cumulative sum that made no. of holes greater than no of values?

please share the part of the code you have doubt in