In first step, ammonia reacts with ethanoyl chloride to give ethanamide and HCl. In the second step degradation of amide takes place that is known as Hoffmann’s bromamide degradation reaction. The third step is diazotisation, where an unstable diazonium salt is obtained, which further gives alcohol as a major product and alkene and alkyl halides. The complete reaction is