The IUPAC name of the compound ClCH2CH2CH2Br is 1-Bromo-3-chloropropane. When 1-Bromo-3-chloropropane reacts with KCN i.e potassium cyanide, the product formed is: ClCH2CH2CH2Br+KCN⟶ClCH2CH2CH2CN+KBr
[Note: Br−is better-leaving group than Cl−.]