Amdocs Interview Question

write program to reverse a string