Why this is not being accepted! Giving wrong answer

Please have a look over my code…