The IUPAC name of the following compound is -

The ring carries –CN, –OH and –Br. The nitrile group ranks above –OH as the principal characteristic group, and a halogen is always cited as a prefix, so the parent is benzonitrile with bromo and hydroxy as prefixes.
The ring carbon bearing –CN is C-1. Numbering towards the bromine places Br at C-2 and OH at C-5, locant set ; numbering the other way gives . At the first point of difference , so the first numbering is used.
Citing the prefixes alphabetically (bromo before hydroxy) gives 2-bromo-5-hydroxybenzonitrile. The name 6-bromo-3-hydroxybenzonitrile describes the same ring but uses the higher locant set .
Hence, the correct option is (B).
Tagged IUPAC nomenclature of organic compounds. Machine-assigned, so read it as a strong shortlist rather than a verdict.