Purifying capital gains

Assalaamu alaykum,

Kindly see the answer in link