In the above reaction product '' is :
In a substitution scenario, the cyanide ion (CN-) acts as a nucleophile rather than a base.
It is important to note that if the question mention alc KOH then we would be using and elimination pathway, however as the question mentions KCN we must understand that KCN is a substituting agent than a solvent.