In the above sequence X, Y and Z are
C6H5NH2, C6H5NHCOC6H5, C6H5NO2
C6H5NO2, C6H5NH2, C6H5NHCOCH3
C6H5NO2, C6H5NH2, C6H5NHCOC6H5
C6H5NHCOC6H5, C6H5NO2, C6H5NH2,
1st step is nitration, 2nd is reduction, 3rd is benzoylation