Step 2 — Ketone from nitrile and Grignard reagent. The methyl group of the Grignard reagent adds to the nitrile carbon. Hydrolysis of the intermediate turns that carbon into a C=O:
Step 3 — Haloform reaction. Sodium hypoiodite converts the CH3 attached to the carbonyl carbon into iodoform. The rest becomes the sodium salt of an acid with one carbon fewer than B:
So C is sodium phenylethanoate, and the yellow precipitate is CHI3.
Why the others are wrong:
(B) Sodium benzoate would need the whole side chain to be cut down to one carbon, which is what vigorous oxidation with KMnO4 does. The haloform reaction removes only the terminal CH3 as iodoform, so the benzylic CH2 stays.
(C) is a C9 salt. B has 9 carbons and the haloform reaction removes one, so C must have 8 carbons.
(D) also has 9 carbons, and it would need a methyl group on the carbon next to the ring, which is not present at any stage.