Pregunta de entrevista de Cognizant

Write a code to reverse a sting in cpp.