Pregunta de entrevista de Mindsprint

In DSA thay asked that to reverse a string?