Google Interview Question

about ds algorithms questions based on tree graphs and dynamic programming