Sponsored
Use these hints if you're stuck. Try solving on your own first.
Simulate the process until there are not enough empty bottles for even one full bottle of water.
Solve with full IDE support and test cases