SAP interview question

Create a function to reverse a string