Why is this not giving correct output?

Why is this not giving correct output?


Please tell the doubt in this one