Google interview question

about ds algorithms questions based on tree graphs and dynamic programming