please explain me this code for the problem mentioned in linkenter link description here
i am not able to understand what exactly is happening specially from where th