結果 : dfs in python using stack