Accellor interview question

write the Reversing a string program