Step 1: Understanding the Concept
In the Cahn-Ingold-Prelog rules, groups are ranked by the atomic number of the first atom attached to the chiral centre.
Step 2: Compare
In \(-\text{NO}_2\) and \(-\text{NH}_2\) the first atom is N (7). In \(-\text{CN}\) it is C (6). In \(-\text{OH}\) it is O (8).
Step 3: Result
Oxygen has the highest atomic number, so \(-\text{OH}\) has the highest priority.
Final Answer:
The OH group has the highest priority.
\[ \boxed{\text{(D) }-\text{OH}} \]