Find the best way to measure N liter of water using bottles X and Y;