Drink for the first time:
There are 5 bottle caps, and you can change 1 bottle of wine, and then there are 1 bottle caps left;
There are 5 empty bottles, you can change 2 bottles of wine, leaving 1 empty bottle;
Then a * * * gets three bottles of wine,
Drink it for the second time,
Three caps, three empty bottles, drink the rest for the first time.
A * * * has four bottle caps and four empty bottles.
Four bottle caps can be exchanged for 1 bottle of wine,
Four empty bottles can be exchanged for two bottles of wine and one * * * can be exchanged for three bottles of wine;
Drink for the third time:
There are three bottles of wine with three caps,
Three empty bottles can be exchanged for 1 bottle of wine, leaving 1 empty bottle;
Drink for the fourth time;
And 1 empty bottle 1 bottle cap, plus the bottle cap and empty bottle left over from the third time.
A * * * has four bottle caps and two empty bottles.
You can get 2 bottles of wine;
Drink for the fifth time:
There are two empty bottles and two caps.
You can take a bottle of wine and there are two bottle caps left;
After drinking for the sixth time,
Finally, * * * left an empty bottle and three caps.
To sum up: a * * can drink 5+3+3+1+2+1=15 (bottle).