Pregunta de entrevista de Microsoft

dp question , link https://leetcode.com/problems/maximum-number-of-operations-with-the-same-score-ii/description/