If you had an infinite supply of water and 5-quart and 3-quart pails, how would you measure exactly 4 quarts? What is the least number of steps you need?
In the figure, you can see nine stars. What you have to do is connect all of them by using just four line and without lifting your hand i.e. in a continuous flow.