Answer:
DMF is an aprotic polar solvent.
hence CN acts as a strong nucleophile in DMF to give SN2 reaction with the reactant resulting into inversion of configuration at stereo centers.
Step-by-step explanation:
check the attached file for little explanation(diagram)