GE HealthCare interview question

how to reverse a string