Identify compound (Z) in the following reaction sequence. [2024]

(1)
