Divisible subarrays


second test case is getting failed

Hi @mehak61
In line no. 29 you have missed to store sum%n into sum.
sum = sum%n;
Do this then you wont face run error.