Analec Infotech interview question

5 and 3 litre bucket problem