Pergunta de entrevista da empresa Cognizant

Write a code to reverse a sting in cpp.