Paxcom Interview Question

water jug problem