Code in Given Contraints Divisible subarray

How to solve the problem in given constraints .Please explain how to approach the question and make a solution in the given contraints.

I am bit confuse while reading the constraints.