Infosys interview question

Q: How can you reverse a string.