Question d’entretien chez Cognizant

Write a program to reverse the string.