Valid Subarrays With Matching Sum Digits I
Grow every subarray from each start index, read the first and last digit of its sum, and count the subarrays where both match the target digit.
Grow every subarray from each start index, read the first and last digit of its sum, and count the subarrays where both match the target digit.