Cognizant Interview Question

Write a code to reverse a sting in cpp.