Where am I going wrong in this code?

Pls explain me its solution…

Pls share your code by saving on ide…so that I could check…
Or if u need to know the logic…then pls specify tht as well

Whats wrong in my code?

I have edited your code… Try to submit now…