SAP interview question

reverse a string