Question d’entretien chez Capgemini

Write a program to print string reverse without using function.