Domanda di colloquio di MathWorks

Consecutive numbers sum from Leetcode, a DP problem, a sliding window question and another easy problem.