Pregunta de entrevista de Google

Solve a problem involving dynamic programming, such as finding the maximum subarray sum.