Pregunta de entrevista de Google

Dynamic Programing on first interview Trees in the second