Pergunta de entrevista da empresa Oracle

1. A puzzle question - Jug and water question.