I could not figure out y wrong …
Divisible sub array( Test case 1 is giving wrong answer )
it is possible b[i] becomes negative since a[i] can take negative values
in that case, you will be accessing negative index of array c, which may give runtime error.