GE HealthCare Interview Question

how to reverse a string