Sum variable value

if the array is{ 23,2,4,6,7 } then output will be true for [2,4] so in video initially we calculate sum as sum=sum+a[I] under for loop then storing sum as sum=sum%k;

so it makes now sum as 5 so for the next iteration i.e for i=1 when we arrive at sum =sum+a[I] then it should be 5+2=7
right ?? then how come its becoming 25

are u refering to the previous video for the question

could u tell the title of the video ??

we are storing the Continuous sum in a new array and not storing sum%k
for understanding sir is telling that sum%k value is 5
and if u watch the entire video
u will see that again 25%6 has been shown as 1
so
please watch the entire video