Sum of Consecutive Subarrays

Sum of Consecutive Subarrays - Coding Problem | K5kC