Why my code is giving wrong answer here?

hello @akash_281
check now