Water Jug Problem in Artificial Intelligence