Adobe interview question

Tree, Graph, DP related questions