Philips Interview Question

Water Jug Problem, how would you design an SQL database for the same project(my project was a MERN project)