Say I have N cup of waters, each cup with different volume 100ml, 250ml, 355ml, etc. and I have M bottles, each has unlimited volume.
I want to pour all water into the M