SAP Ariba Interview Question

Write code to figure out modified tre