Pregunta de entrevista de MathWorks

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