Identify A and B in the following reaction sequence. [2024]

(2)
Aryl halides have no tendency to show nucleophilic substitution reaction but in the presence of strong electron withdrawing group such as nitro group these show nucleophilic substitution reactions with ease.