SAP interview question

for the coding interview, they asked the two sums problem