Yahoo Interview Question

Logical question: related to water jars