Schneider Electric Interview Question

write a program to reverse a string