Amazon interview question

Trees, permutation and Combination and dfs