Alida interview question

They asked me to reverse a string