Answer: C
SN2 inverts the spatial arrangement. In the substrate the priorities are Br>CHX2Cl>CHX3>H. In the product CHX2Cl (Cl on carbon) outranks CN (N,N,N), so the order becomes CHX2Cl>CN>CHX3>H: two groups swap ranks. The swap and the inversion cancel, so the label stays (S).