Telvent interview question

reverse string