PR NUMBERS giving Wrong Answer

I have submitted the code , but its giving WA . I am stuck on this question for 3 days now . Please look at my code and tell the mistake.

No issues i fixed it