Ericsson interview question

Testing questions Reverse a string problem at the end