There are 4 water jug – A, B, C and D.

One can fill 3 litres in A, 4 litres in B, 5 litres in C and 5 litres in D. Container A and B are given to you empty and C and D are fully filled with water.

What you have to do is fill the water jug A, B, C and D with ascending or descending order.

Initially

A – 0, B – 0, c -5, D – 5

Pour C into B

A – 0, B – 4, C – 1, D – 5

Pour C into B

A – 0, B – 4, C – 1, D – 5

Pour half of B into C

A – 0, B – 2, C – 3, D – 5

Pour D into A

A – 3, B – 2, C – 3, D – 2

Pour A into B

A – 1, B – 4, C – 3, D – 2

Pour half of B into D

A – 1, B – 2, C – 3, D – 4