Find out the major products from the following reaction sequence. [2023]

(3)
