SAP Interview Question

Don't remember very well sorry. Some algorithmic problem