Dfs Stack Implementation Using Array Python