syncreon interview question

simulate a java program to generate water manifacturing,