Avanade interview question

how do you reverse a string?