Dfs Algorithm In Python Using Dictionaries In Python