It looks like number *= 2 at the end of the loop should be replaced with number += 1, because the number of removed bottles on each iteration increases by 1, not doubles.
number *= 2
number += 1
It's right ! I do that too fastly. Thank you for your attention.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.