Hi sandeep sharma,
I copy your file to the KSDK2.1-FRDM-K22 board, and use the logic analyzer to check the I2C wave in PTC10(i2c_scl), and PTC11(I2C_SDA), I get this wave:

9 bit: 7bit address(0x23) +1bit(W) +1bit(NACK).
Your slave really didn't give ACK.
Please add external 10Kpull up in the i2c wave.
Actually, because you just use the I2C master mode, then you don't need to add the slave code.
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------