Here is my code please review my code , and help me understand my mistake
Some testcase failing in DIVISIBLE SUBARRAYS problem

calculate your sum as this, since sum can be large negative number so adding just n wonβt make it positive so first take modulo then adding n will make it positive.