SAP interview question

Solve a coding problem. It was on strings again