結果 : dfs in python without recursion