Pregunta de entrevista de Google

about ds algorithms questions based on tree graphs and dynamic programming