Question d’entretien chez Cognizant

Write program for reverse of string?