Domanda di colloquio di Barclays

Given a string, write a function in C to reverse the string in-place.