Doubt regarding june19 long challenge

please explain me the solution to this question

i will explain u in personal chat