Trinit Automation interview question

Write a programe to reverse a string in C++ under Linux.