Question d’entretien chez HashedIn by Deloitte

Write a program to reverse a string.