HGS interview question

Explaining the tpoic