Simple solution to the 3 jug problem