TATA ELXSI interview question

Basic C programming questions such as how to reverse a string using the least space and time complexity