Leetcode 3284. Sum of Consecutive Subarrays | Hello Interview