ABeam Consulting Interview Question

Technical SAP question and logic