Code is correct but answer it is showing incorrect

Please check the attached screenshot in which my code is returning 0 but it should have return 27. Please check what’s wrong here

Hi,
Screenshot is missing in your problem statement. Please edit your question with the screenshot.
Thanks
Pavan.

I have attched the screenshot now. Please review.

Hi @deepak_chatrath,

Can you please take inspiration from hint and see answer? Also can you please check if the line is matching the condition specified in if clause?

Thanks