Domanda di colloquio di Google

Coding challenge had a dynamic programming problem.