Implement Water Jug Problem In Python