Domanda di colloquio di Vanguard

Leetcode Question on Recursion/Dynamic Programming