$ Divisible Subarrays

Sir, I am not getting the concept of the subarray , the cumulative sum and nCr why to divide by 2

@Somith hey cummulative sum is just sum of current element + previous sum aise hi hm array ke har element ka cs nikal lete hai fir use kia hai use ,also woh ncr mein ncr wala formula use kia hai that is nCr = n! / r! * (n - r)!,agr ap ise solve krenge value dal kr to wahi ayega jo sir ne btaya hai ,I will suggest you to dry run on one test case ,you will get it.