Divisible Subarray: Solution won't accept

https://ide.codingblocks.com/s/72244

https://hack.codingblocks.com/practice/p/364/266

Whats wrong with my solution

Hi

See this video tutorial

Hit like if you get it!
Cheers!

that’s the logic i have used. still missing out on the second test case.

Thanks