Optum interview question

an easy DSA question: reverse a string