FIME interview question

Write prog to reverse string , reverse sequence of string