SAP Interview Question

Solve a coding problem. It was on strings again