Producing wrong output. What's the mistake?

Hello @mb129162,

The value of area could also be greater than the range of int as per the constraints given in the question.

I have corrected your code:

Hope this would help.
Give a like if you are satisfied.