結果 : dfs implementation with stack