Answer: A
The phthalimide anion is a good nucleophile that is not strongly basic, and DMF increases its reactivity. With 2 mol of reagent, both primary C-Br bonds are displaced by SN2 to give the bis(phthalimide). Hydrazine then removes both phthaloyl groups and gives the diamine HX2N(CHX2)X4NHX2. The phthalimide nitrogen cannot be alkylated twice, so no secondary amine is formed.