Pregunta de entrevista de Google

classic dynamic programming problem with a twist