LogStarERP Interview Question

Water Jug Problem Code ?