I am trying to read a string and reverse the words in the string., but the content of the strings is getting overwritten and I am getting garbage values for the first few strings in the 2D array. E.g. when I print the words in reverse order at the end of the function, I am getting junk for the first few strings. What am I doing wrong?I am trying to read a string and reverse the wo