Compound A, is found to react with (produced by reacting Y with NaOH ) and yields a yellow precipitate with characteristic smell. A and Y are respectively
As the compound is giving yellow precipitate with NaOI that shows it is undergoing haloform reaction. Haloform reaction is shown by the compounds having