Rudder Analytics Interview Question

Water jug problem