Not giving correct output

I have edited your code… Try to submit now…