Pregunta de entrevista de PwC

Neetcode 150 one dsa from dynamic programming section