SAP interview question

A leetcode easy question. Dont remember exactly