Bentley Systems interview question

Reverse a string coding question