Doubt in amines

Please help. I got inital product. But am confused about the role of tri

ethylamine
Answer is A

Help @Soumyadeep_2019 @Bhuvanitha_2020 @Achyut_2020

I think triethyl amine is used here as aprotic solvent , as in SN2 reaction aprotic solvent is required

Thanks