Rudder Analytics interview question

Water jug problem