Tech Mahindra Interview Question

How to reverse a string in c?