Plz tell the error in this

doubt was resolved in below discussion