SAP Interview Question

A leetcode easy question. Dont remember exactly