A primary alkyl bromide (A), , reacted with alcoholic KOH to give compound (B). Compound (B) reacted with HBr to give an isomer of (A). When (A) was reacted with sodium metal it gave compound (D), , which was different from the compound produced when n-butyl bromide was reacted with sodium. Draw the structure of (A) and write equations for all the reactions.
Written answer: work it out on paper, then compare.