Bob and the container

I’m not getting the problem statement can u explain.
Problem

Thank you
:star_struck::star_struck:.

Tried the implementation but getting the wrong answer please help.

code

why cant we include the topmost layer between two bars of height 8.

We need maximum area. If we choose the 2 bars with height 8, the area covered will be 8*5 = 40 but we can get a better area (49).