SAP Interview Question

How would you solve this specific problem with whatever coding language you know