Imagine Communications interview question

reverse string