https://www.geeksforgeeks.org/water-jug-problem-using-bfs/