In this case, according to the described chemical reaction, Cl2 replaces iodine in NaI in order to produce I2 and NaCl:
It is possible to realize how chlorine replaces iodine in agreement with the single displacement reaction. Moreover, since chlorine and iodine atoms are not correctly balanced, we add a 2 in front of both NaI and NaCl in order to do so: