Amazon interview question

trees , dp solution for backtracking problems