Signify Health interview question

Reverse a string in Java