Count subarrays summing to target | Meta Interview Question