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