Explaination of Sagheer problem

Please provide me a detailed explanation of this code.

Okay, this will work.
Thanks!

You can mark this doubt as resolved now. I have downloaded the pdf.