Divisible subarrays problem


my code is compiling but not giving the answer.Please help.

@srshubhi398,
That’s because you are not printing anything.

I printed at last.1 testcase is not being passed.


this is the code.

@srshubhi398,
Try to debug it yourself first. At least give it some time.