Question d’entretien chez Cognizant

Write a code to reverse a sting in cpp.