Water Jug Problem Using Dfs In Python