ABeam Consulting interview question

Technical SAP question and logic