AppleOne Interview Question

Count subarrays with sum equals k