Jug filling problem