(b)
$NaBH_{4}$ and $LiAlH_{4}$ attacks only carbonyl group and reduce it into alcohol group. They do not attack on double bond.
$C_{6}H_{5} - CH = CHCHO\overset{\ \ NaBH_{4}\ \ \ }{\rightarrow}C_{6}H_{5} - CH = CH.CH_{2}OH$
cinnamic aldehyde cinnamic alcohol