Its giving me wrong output

Please check the error:

Question link: