Answer: A
In the substrate the order is Br > CHX2OCHX3 > CHX3 > H. In the product, CHX2OCHX3 (O,H,H) outranks CN (N,N,N), so the order is CHX2OCHX3 > CN > CHX3 > H. The entering group takes second rank where Br was first, which reverses the effect of geometric inversion, so the label remains R.