The correct option is C Heptanoic acid
We know that glucose is an aldohexose. Glucose reacts with HCN to give a cynohydrin at the aldehyde group (X). When this cyanohydrin is hydrolysed, we get an acid at the nitrile position(Y). When this is reduced by using HI/heat, we get heptanoic acid.
CHO−(CHOH)4−CH2OH+HCN⟶CH(CN)OH−(CHOH)4−CH2OH (cyanohydrin−X)
CH(CN)OH−(CHOH)4−CH2OH+H2O⟶COOH−(CHOH)5−CH2OH(Y)
COOH−(CHOH)5−CH2OH+HI⟶COOH−(CH2)5−CH3 (heptanoicacid−Z)