Domanda di colloquio di Microsoft

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