PwC Interview Question

Neetcode 150 one dsa from dynamic programming section