Pregunta de entrevista de Opera Solutions

second: Question on dynamic Programming.