Count subarrays with product under target | Bloomberg Interview Question