Problem 5
Fans of the Die Hard Trilogy may remember an
interesting riddle presented during the movie. Let's
up the stakes:
You are given three empty jugs: one 3-gallon, one
5-gallon, and one 13-gallon. Your task is to fill the
13-gallon jug with
exactly 7 gallons of water
using only the 3 jugs provided.
Write a detailed description as to how one can arrive
with 7 gallons of water in the 13-gallon jug.