SAP Ariba interview question

Write code to figure out modified tre