Python Dfs Implementation Using Stack In Java