Question d’entretien chez Wipro

How to reverse a string without using library function.