Whats wrong in my code?

divisible subarrays