SAP interview question

Two sum easy coding question