Pregunta de entrevista de Google

Solve a coding problem with dynamic programming