Red Bus Interview Question

write a program to reverse the string