An optically active alkyl bromide \(C_4H_9Br\) reacts with ethanolic KOH to form major compound [A] which reacts with bromine to give compound [B]. Compound [B] reacts with ethanolic KOH and sodamide to give compound [C]. One molecule of water adds to compound [C] on warming with mercuric sulphate and dilute sulphuric acid at \(333\,K\) to form compound [D]. The functional group in compound D is confirmed by :