This question came in the recent summer internship drive on my campus but I could not solve it
Q)Array contains only 0 and 1. You are given two integers X and Y. Count how many subarrays have (count of 0) to (count of 1) equal to X: Y.
1<=N<=1e5 1<=X,Y<=1e5
Please help. Thanks