First heterolytic fission of iodine will take place and I+ will attack at double bond site. Then oxygen of carboxylic acid will attack on the carbocation, forming a cyclic ring. In last step elimination reaction will take place in presence of heat and Py.





