Mindsprint interview question

In DSA thay asked that to reverse a string?