Wipro Interview Question

How to reverse a string without using library function.