Tech Mahindra interview question

How to reverse a string in c?