PC Laptops interview question

They asked me how to reverse a string