Concept:
Phenol is acidic enough to react with NaOH but not strong enough to react with sodium bicarbonate.
Step 1: Analyze the NaOH test.
Phenol reacts with sodium hydroxide.
\[
C_6H_5OH + NaOH
\rightarrow
C_6H_5ONa + H_2O
\]
Therefore it dissolves in NaOH.
Step 2: Analyze the \(NaHCO_3\) test.
Phenol is weaker than carbonic acid.
Hence it cannot liberate \(CO_2\) from sodium bicarbonate.
Therefore it does not react with
\[
NaHCO_3
\]
Step 3: Reaction with bromine water.
Phenol strongly activates the benzene ring.
\[
C_6H_5OH + 3Br_2
\rightarrow
2,4,6\text{-Tribromophenol}
+3HBr
\]
A white precipitate is obtained.
Hence
\[
\boxed{X=\text{Phenol}}
\]