Media.net interview question

Puzzles like Water Jug Problem