Water Jug Problem In Python Using Bfs