Appian Interview Question

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