The problem was to count the number of subarrays with given product (the product can be 0, however NO NEGATIVE products guranteed) , I have tried the sliding window technique and other solutions, but to no avail. Can anyone help me with this?