Cisco interview question

explain how would reverse a string in C?