Leetcode 3299. Sum of Consecutive Subsequences | Hello Interview