Media.net Interview Question

Puzzles like Water Jug Problem