Measure 4 litres with a 3 and a 5 jug
Asked at Jane Street
You have a 3-litre jug and a 5-litre jug, both unmarked, and an unlimited supply of water. You can fill either jug to the top, empty either jug completely, or pour water from one jug into the other until either the source is empty or the destination is full.
Measure out exactly 4 litres of water.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.