Appian interview question

Write a C/C++ program to reverse a String