Citi interview question

reverse a string