Compound $X$ has the molecular formula $\text{C}_4\text{H}_8$ and is changed in the following reactions. $\text{C}_4\text{H}_8\xrightarrow{\text{Br}_2} \text{C}_4\text{H}_8\text{Br}_2 \xrightarrow{\text{aq. NaOH/heat}} \text{C}_4\text{H}_{10}\text{O}_2$ $\text{C}_4\text{H}_8 \xrightarrow{\text{H}_2/\text{Ni}}$ methylpropane State the formula of compound $Z$.
- A$\text{CH}_3\text{CH}_2\text{CH(OH)CH}_2\text{OH}$
- B$\text{CH}_3\text{CH(OH)CH(OH)CH}_3$
- C$\text{CH}_3\text{CH(CH}_2\text{OH)CH}_2\text{OH}$
- D$(\text{CH}_3)_2\text{C(OH)CH}_2\text{OH}$