Step – 1: To find out the structure of compounds ‘B’ and ‘C’.
1. Since compound ‘C’ with molecular formula C6H7N is formed from compound ‘B’ on treatment with Br2 + KOH (i.e., Hoffmatm bromamide reaction). Therefore, compound ‘B’ must be an amide and ‘C’ must be an amine. The only amine having the molecular formula C6H5N is C6H5NH2 (i.e., aniline or benzenamine).
2. Since ‘C’ is aniline, therefore, the amide from which it is formed must be benzamide (C6H5CONH2). Thus, compound ‘B’ is benzamide. The chemical equation showing the conversion of ‘B’ to ‘C’ is

Step – 2:
To find out the structure of compound ‘A’. Since compound ‘B’ is formed from compound ‘A’ by treatment with aqueous ammonia and heating. Therefore, compound ‘A’ must be benzoic acid or benzenecarboxylic acid.
