It depends on what kind of beer. For example, let's take a radler with 1% alcohol content. Those. 40 liters = 400ml of pure alcohol. Those. about 1 liter of vodka. Further, I think it is clear that this is quite realistic, given the previous answer about the amount of liquid.
It is quite realistic, although according to the norms of fluid intake, the body of a person over 18 years old needs to consume 40 ml of water per 1 kg of body weight. Water is a neutral liquid, and beer, as much as we would like to consider it harmless, is psychoactive and even omitting this fact (because intoxication may occur in the process). Having a good drainage system (something that will make you sweat) - activity (also training in this direction), a bath / sauna, a toilet - you can drink 40 liters per day (using some light version of this drink in order to avoid poisoning).
Considering that there are examples of drinking 10 liters of beer in 3 minutes and 90 liters of water per day, we can say with full confidence that you can drink 40 liters of beer, but because this liquid can cause an increase in alcohol in the body and further poisoning with it, it is better to test it on water, maintaining health and not mindlessly chasing the Darwin Prize ...